package com.example.demo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.demo.model.entity.CourseEntity;
import com.example.demo.model.param.CourseParam;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface CourseMapper extends BaseMapper<CourseEntity> {



    @Select("<script>select * from t_course where 1=1 <when test='param.name != null and param.name != \"\"'>and name = #{param.name}</when></script>")
    public List<CourseEntity> selectCourseList(@Param("param") CourseParam courseParam);
}
